package org.nnxy.foodboot.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 食谱实体类
 */
@Data
@TableName("recipe")
public class Recipe {
    
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    
    private String name;
    
    private String author;
    
    private String sourceUrl;
    
    private String description;
    
    private String imageUrl;
    
    private String flavor;
    
    private String technique;
    
    private String duration;
    
    private String difficulty;
    
    @TableLogic
    @TableField(value = "del_flag")
    private String delFlag;
    
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
} 